<?php


namespace app\controller\admin\partner;


use app\controller\admin\BaseAdminController;
use app\model\partner\PartnerCityModel;

class openCityController extends BaseAdminController
{

    function setModel()
    {
        return new PartnerCityModel();
    }

    function setWithModel()
    {
    }

    function setSearch()
    {
        return [
            'like' => ['name']
        ];
    }

    function setSort()
    {
        // TODO: Implement setSort() method.
    }

    public function getArr()
    {

        $arr = $this->setModel()->with($this->setWithModel())->select()->toArray();
        return $this->success($arr);
    }
}